package ${package}.base.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModelProperty;
<#if hasDate == true || hasDateTime == true>
import java.util.Date;
</#if>
<#if hasBigDecimal??>
import java.math.BigDecimal;
</#if>
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
* @description ${tableComment}
* @author ${author}
* @date ${date}
* @website https://gitee.com/sunalee/fastboot-vue
**/
@Data
@Accessors(chain = true)
public class ${className} implements Serializable {
<#if columns??>
    <#list columns as column>

    <#if column.fieldKeyType = 'PRI' && auto??>
    @TableId(value = "${column.fieldName}", type = IdType.AUTO)
    <#elseif column.fieldKeyType = 'PRI'>
    @TableId(value = "${column.fieldName}")
    </#if>
    <#if column.columnComment != ''>
    @ApiModelProperty(value = "${column.columnComment}")
    <#else>
    @ApiModelProperty(value = "${column.fieldRemark}")
    </#if>
    private ${column.fieldJavaType} ${column.lowerColumnName};
    </#list>
</#if>

    public void checkParam(){
        //校验参数用的
        return;
    }

}
